package cn.stylefeng.guns.modular.gridsystem.temperature.entity;


import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)//Lombok注解之一，用于自动生成equals(Object other)和hashCode()方法。
@TableName("biz_temperature_channel")
public class BizTemperatureChannel extends BaseEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer deviceId;
    /**
     * 网关code号
     */
    @TableField(value = "gateway_code")
    private String gatewayCode;
    /**
     * 网关id
     */
    @TableField(value = "gateway_id")
    private Integer gatewayId;

    /**
     * 网关通道
     */
    @TableField(value = "gateway_channel")
    private String gatewayChannel;

    /**
     * 位置
     */
    @TableField(value = "install_location")
    private String installLocation;

    /**
     * 阈值
     */
  //  @TableField(value = "temp_value")
    // private Integer tempValue;
    @TableField(value = "cha_value")
    private Double chaValue;

    @TableField(value = "max_value")
    private Double maxValue;

    /**
     * 通道类型
     */
    @TableField(value = "channel_type")
    private Integer channelType;
}
